﻿namespace Arim.S4.Api
{
    public class Urls
    {
        public const string BASE = "/api";

        public static class MACHINES
        {
            public const string BASE = "/api/machines";
            public const string HISTORY = "/api/machines/histories";
        }

        public static class MANUFACTURE_PLAN
        {
            public const string BASE = "/api/manufacture-plans";
            public const string CONFIRM = "/api/manufacture-plans/confirm";
        }

        public const string CRANES = "/api/cranes";
        public static class JOB_PLANS
        {
            public const string BASE = "/api/job-plans";

            /// <summary>
            /// 保存甘特图上的排产信息。
            /// </summary>
            public const string SAVE = "/api/job-plans/save"; 
            public const string MES = "/api/job-plans/mes";


            /// <summary>
            /// 启动智能调度。
            /// </summary>
            public const string RUN = "/api/job-plans/run";


            /// <summary>
            /// 获取首次调度结果，可能为空。
            /// </summary>
            public const string FIRST = "/api/job-plans/first";

            /// <summary>
            /// 获取动态调度结果，可能为空。
            /// </summary>
            public const string FRESH = "/api/job-plans/fresh";



        }

        public static class CHEMICALS
        {
            public const string BASE = "/api/chemical";
            public const string IRON = "/api/chemical/iron/{0}";
            public const string STEEL = "/api/chemical/steel/{0}";

        }
        public static class IRON_BAGS
        {
            public const string BASE = "/api/iron-bags";
            public const string MERGE = "/api/iron-bags/heat/{0}"; // 获取某个炉次的铁水对应情况
            public const string HOT = "/api/iron-bags/hot/{0}"; // 获取某个铁次的使用情况
        }
        public static class KITS
        {
            public const string PROCESSES = "/api/processes";
        }
        public const string BACKGROUND_JOB = "/api/backgroundjobs";
        public static class AUTH
        {
            public const string BASE = "/api/auth";
            public const string LOGIN = "/api/auth/login";
            public const string LOGOUT = "/api/auth/logout";
            public const string CHANGE_PASSWORD = "/api/auth/changepassword";
        }
    }
}
